package com.xsz.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import com.xsz.entity.Blog;


public interface BlogRepository  extends JpaRepository<Blog,String> {
	//抽象方法，不需要方法体 JPASQL
<<<<<<< HEAD
	public Blog findByTitleAndStatus(String title,Integer status);
	//根据作者id查
	public List<Blog> findByAuthorAndStatus(String Author,Integer status);
=======
	public Blog findByTitle(String title);
	//根据作者id查
	public List<Blog> findByAuthor(String Author);
>>>>>>> f02232e15acf256ce9318fb7b78caf2ab4fad356
	

}
